# Makefile for disassasembly module

# MACROS
DEBUG = -g -DDEBUG
CFLAGS = -Wall -ansi $(DEBUG) -c


# Clean up

clean:
	rm -f -i disassembler.o
	rm -f -i DecodedStructs.o
	rm -f -i disassembler

all: disassembler

disassembler: DecodedStructs.o disassembler.o   
	gcc disassembler.o DecodedStructs.o -o disassembler

disassembler.o: disassembler.c disassembler.h DecodedStructs.h  
	gcc disassembler.c $(CFLAGS) -o disassembler.o

DecodedStructs.o: DecodedStructs.c DecodedStructs.h
	gcc DecodedStructs.c $(CFLAGS) -o DecodedStructs.o
